package com.module.admin.sys.service;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.ms.biz.admin.config.FormSupportConfig;
import com.system.handle.model.ResponseFrame;

@FeignClient(name="biz-service-api", configuration = FormSupportConfig.class)
public interface SysDictService {

	/**
	 * get
	 * http://127.0.0.1:7950/sysDict/get?typeCode=ROLE_INFO&dictId=roleIdClientManager
	 * @param typeCode
	 * @param dictId 
	 * @return
	 */
	@PostMapping(value = "/sysDict/get")
	public ResponseFrame get(@RequestParam("typeCode")String typeCode, @RequestParam("dictId")String dictId);
	
	/**
	 * saveOrUpdate
	 * http://127.0.0.1:7950/sysDict/saveOrUpdate?typeCode=ROLE_INFO&dictId=roleIdClientManager&name=测试1&value=test1
	 * @param typeCode
	 * @param dictId 
	 * @return
	 */
	@PostMapping(value = "/sysDict/saveOrUpdate",
            consumes = {MediaType.APPLICATION_FORM_URLENCODED_VALUE},
            produces = {MediaType.APPLICATION_JSON_UTF8_VALUE}
            )
	public ResponseFrame saveOrUpdate(Map<String, ?> queryParam);
	
	/**
	 * 上传文件
	 * @param fromsystemid
	 * @param file
	 * @return
	@PostMapping(value = "/msncMail/upload",
			consumes = MediaType.MULTIPART_FORM_DATA_VALUE
            )
	public abstract ResponseFrame upload(@RequestPart("file") MultipartFile file, @RequestParam("fromsystemid")String fromsystemid);

	 */
}
